Skip to content

nixVersions.stable: nix_2_28 -> nix_2_31#440681

Merged
Mic92 merged 4 commits intoNixOS:staging-nextfrom
philiptaron:nixVersions.stable-upgrade-to-2.31.1
Sep 22, 2025
Merged

nixVersions.stable: nix_2_28 -> nix_2_31#440681
Mic92 merged 4 commits intoNixOS:staging-nextfrom
philiptaron:nixVersions.stable-upgrade-to-2.31.1

Conversation

@philiptaron
Copy link
Contributor

@philiptaron philiptaron commented Sep 6, 2025

NixCon 2025 has been a wonderful experience. Let's make it even better for the whole world by giving them a new, fresh, well-tested Nix version.

Per the readme, we're targeting staging.

Previous bump:

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@philiptaron philiptaron requested a review from Mic92 September 6, 2025 14:43
@philiptaron philiptaron marked this pull request as draft September 6, 2025 15:54
@philiptaron
Copy link
Contributor Author

Marking draft; will hack on this tomorrow to resolve the eval errors.

@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux. 10.rebuild-darwin: 11-100 This PR causes between 11 and 100 packages to rebuild on Darwin. 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` labels Sep 7, 2025
@philiptaron
Copy link
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 440681 --checkout commit
Commit: 62f82d6a8f43914978b6dd310d6f060183ab24b7


x86_64-linux

⏩ 1 package marked as broken and skipped:
  • tests.pkg-config.defaultPkgConfigPackages.tests-combined
⏩ 2 packages blacklisted:
  • nixos-install-tools
  • tests.nixos-functions.nixos-test
✅ 130 packages built:
  • appvm
  • bower2nix
  • bundix
  • cabal2nix
  • cached-nix-shell
  • chirpstack-concentratord
  • colmena
  • comma
  • common-updater-scripts
  • crate2nix
  • crush
  • disko
  • dub-to-nix
  • dydisnix
  • fusionInventory
  • gcalcli
  • gcalcli.dist
  • gclient2nix
  • glpi-agent
  • haskellPackages.cabal2nix-unstable
  • haskellPackages.cli-nix
  • haskellPackages.cli-nix.doc
  • haskellPackages.niv
  • haskellPackages.niv.bin
  • haskellPackages.niv.data
  • haskellPackages.niv.doc
  • haskellPackages.nix-paths
  • haskellPackages.nix-paths.doc
  • haskellPackages.nix-thunk
  • haskellPackages.nix-thunk.doc
  • haskellPackages.nvfetcher
  • haskellPackages.nvfetcher.doc
  • haskellPackages.update-nix-fetchgit
  • haskellPackages.update-nix-fetchgit.doc
  • home-manager
  • kcl
  • libnixxml
  • lua51Packages.luarocks-nix
  • luarocks-nix (luaPackages.luarocks-nix)
  • lua53Packages.luarocks-nix
  • lua54Packages.luarocks-nix
  • luajitPackages.luarocks-nix
  • luarocks-packages-updater
  • luarocks-packages-updater.dist
  • lux-cli
  • mdwatch
  • mlv-app
  • nil
  • nim_lk
  • niv (niv.bin, niv.data)
  • nix-bundle
  • nix-direnv
  • nix-forecast
  • nix-index
  • nix-init
  • nix-pin
  • nix-prefetch
  • nix-prefetch-docker
  • nix-prefetch-github (python313Packages.nix-prefetch-github)
  • nix-prefetch-github.dist (python313Packages.nix-prefetch-github.dist)
  • nix-prefetch-github.man (python313Packages.nix-prefetch-github.man)
  • nix-required-mounts
  • nix-required-mounts.dist
  • nix-serve
  • nix-template
  • nix-update
  • nix-update.dist
  • nix-visualize
  • nix-visualize.dist
  • nix-web
  • nixStatic
  • nixStatic.dev
  • nixStatic.doc
  • nixStatic.man
  • nixci
  • nixos-anywhere
  • nixos-generators
  • nixos-option
  • nixos-rebuild
  • nixos-rebuild-ng
  • nixos-rebuild-ng.dist
  • nixos-shell
  • nixpkgs-hammering
  • nixpkgs-manual
  • nixpkgs-review
  • nixpkgs-review.dist
  • nixpkgs-reviewFull
  • nixpkgs-reviewFull.dist
  • nixseparatedebuginfod2
  • nixtract
  • node2nix (nodePackages.node2nix)
  • nodePackages_latest.node2nix
  • nps
  • nuget-to-json
  • nurl
  • nvfetcher
  • python312Packages.nix-kernel
  • python312Packages.nix-kernel.dist
  • python312Packages.nix-prefetch-github
  • python312Packages.nix-prefetch-github.dist
  • python312Packages.nix-prefetch-github.man
  • python313Packages.nix-kernel
  • python313Packages.nix-kernel.dist
  • python313Packages.nixpkgs-updaters-library
  • python313Packages.nixpkgs-updaters-library.dist
  • ragenix
  • sbomnix
  • sbomnix.dist
  • sus-compiler
  • swiftpm2nix (swiftPackages.swiftpm2nix)
  • terranix
  • tests.devShellTools.nixos
  • tests.pkg-config.defaultPkgConfigPackages.nix-cmd
  • tests.pkg-config.defaultPkgConfigPackages.nix-expr
  • tests.pkg-config.defaultPkgConfigPackages.nix-main
  • tests.pkg-config.defaultPkgConfigPackages.nix-store
  • tests.testers.lycheeLinkCheck.network
  • tests.testers.nixosTest-example
  • tests.testers.runNixOSTest-example (tests.testers.runNixOSTest-extendNixOS)
  • tests.trivial-builders.references
  • update-nix-fetchgit
  • update-python-libraries
  • vimPluginsUpdater
  • vulnix
  • vulnix.dist
  • vulnix.doc
  • vulnix.man
  • wp4nix
  • xosd-xft
  • zon2nix

@philiptaron
Copy link
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 440681 --checkout commit --package nix.tests
Commit: 62f82d6a8f43914978b6dd310d6f060183ab24b7


x86_64-linux

✅ 15 packages built:
  • nix.tests.misc
  • nix.tests.nix-fallback-paths
  • nix.tests.nixStatic
  • nix.tests.nixStatic.dev (nix.tests.nixStatic.dev.dev, nix.tests.nixStatic.dev.doc, nix.tests.nixStatic.dev.man)
  • nix.tests.nixStatic.doc (nix.tests.nixStatic.doc.dev, nix.tests.nixStatic.doc.doc, nix.tests.nixStatic.doc.man)
  • nix.tests.nixStatic.man (nix.tests.nixStatic.man.dev, nix.tests.nixStatic.man.doc, nix.tests.nixStatic.man.man)
  • nix.tests.nixi686
  • nix.tests.nixi686.dev (nix.tests.nixi686.dev.dev, nix.tests.nixi686.dev.doc, nix.tests.nixi686.dev.man)
  • nix.tests.nixi686.doc (nix.tests.nixi686.doc.dev, nix.tests.nixi686.doc.doc, nix.tests.nixi686.doc.man)
  • nix.tests.nixi686.man (nix.tests.nixi686.man.dev, nix.tests.nixi686.man.doc, nix.tests.nixi686.man.man)
  • nix.tests.nixpkgs-lib
  • nix.tests.pkg-config
  • nix.tests.simpleUefiSystemdBoot
  • nix.tests.srcVersion
  • nix.tests.upgrade

@philiptaron philiptaron marked this pull request as ready for review September 7, 2025 10:14
@philiptaron
Copy link
Contributor Author

I'd appreciate any testing on macOS.

Copy link
Contributor

@MattSturgeon MattSturgeon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not tested on my end, but no objections either 👍

Approved pending additional reviews with testing and/or more expertise.

@nixpkgs-ci nixpkgs-ci bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Sep 7, 2025
@bengsparks
Copy link
Contributor

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 440681 --checkout commit
Commit: 62f82d6a8f43914978b6dd310d6f060183ab24b7


aarch64-darwin

⏩ 1 package marked as broken and skipped:
  • tests.pkg-config.defaultPkgConfigPackages.tests-combined
❌ 8 packages failed to build:
  • haskellPackages.cabal2nix-unstable
  • libnixxml
  • nixStatic
  • nixStatic.dev
  • nixStatic.doc
  • nixStatic.man
  • node2nix (nodePackages.node2nix)
  • nodePackages_latest.node2nix
✅ 111 packages built:
  • appvm
  • bower2nix
  • bundix
  • cabal2nix
  • cached-nix-shell
  • colmena
  • comma
  • common-updater-scripts
  • crate2nix
  • crush
  • darwin.linux-builder
  • darwin.linux-builder-x86_64
  • dub-to-nix
  • dydisnix
  • gcalcli
  • gcalcli.dist
  • gclient2nix
  • haskellPackages.cli-nix
  • haskellPackages.cli-nix.doc
  • haskellPackages.niv
  • haskellPackages.niv.bin
  • haskellPackages.niv.data
  • haskellPackages.niv.doc
  • haskellPackages.nix-paths
  • haskellPackages.nix-paths.doc
  • haskellPackages.nix-thunk
  • haskellPackages.nix-thunk.doc
  • haskellPackages.nvfetcher
  • haskellPackages.nvfetcher.doc
  • haskellPackages.update-nix-fetchgit
  • haskellPackages.update-nix-fetchgit.doc
  • home-manager
  • kcl
  • lua51Packages.luarocks-nix
  • luarocks-nix (luaPackages.luarocks-nix)
  • lua53Packages.luarocks-nix
  • lua54Packages.luarocks-nix
  • luajitPackages.luarocks-nix
  • luarocks-packages-updater
  • luarocks-packages-updater.dist
  • lux-cli
  • mdwatch
  • nil
  • nim_lk
  • niv (niv.bin, niv.data)
  • nix-bundle
  • nix-direnv
  • nix-forecast
  • nix-index
  • nix-init
  • nix-pin
  • nix-prefetch
  • nix-prefetch-docker
  • nix-prefetch-github (python313Packages.nix-prefetch-github)
  • nix-prefetch-github.dist (python313Packages.nix-prefetch-github.dist)
  • nix-prefetch-github.man (python313Packages.nix-prefetch-github.man)
  • nix-required-mounts
  • nix-required-mounts.dist
  • nix-template
  • nix-update
  • nix-update.dist
  • nix-visualize
  • nix-visualize.dist
  • nix-web
  • nixci
  • nixos-anywhere
  • nixos-generators
  • nixos-option
  • nixos-rebuild
  • nixos-rebuild-ng
  • nixos-rebuild-ng.dist
  • nixos-shell
  • nixpkgs-hammering
  • nixpkgs-manual
  • nixpkgs-review
  • nixpkgs-review.dist
  • nixpkgs-reviewFull
  • nixpkgs-reviewFull.dist
  • nixtract
  • nps
  • nuget-to-json
  • nurl
  • nvfetcher
  • python312Packages.nix-kernel
  • python312Packages.nix-kernel.dist
  • python312Packages.nix-prefetch-github
  • python312Packages.nix-prefetch-github.dist
  • python312Packages.nix-prefetch-github.man
  • python313Packages.nix-kernel
  • python313Packages.nix-kernel.dist
  • python313Packages.nixpkgs-updaters-library
  • python313Packages.nixpkgs-updaters-library.dist
  • ragenix
  • sbomnix
  • sbomnix.dist
  • sus-compiler
  • swiftpm2nix (swiftPackages.swiftpm2nix)
  • terranix
  • tests.pkg-config.defaultPkgConfigPackages.nix-cmd
  • tests.pkg-config.defaultPkgConfigPackages.nix-expr
  • tests.pkg-config.defaultPkgConfigPackages.nix-main
  • tests.pkg-config.defaultPkgConfigPackages.nix-store
  • update-nix-fetchgit
  • update-python-libraries
  • vimPluginsUpdater
  • vulnix
  • vulnix.dist
  • vulnix.doc
  • vulnix.man
  • wp4nix
  • zon2nix

Error logs: `aarch64-darwin`
haskellPackages.cabal2nix-unstable
checkPhase completed in 50 seconds
Running phase: haddockPhase
@nix { "action": "setPhase", "phase": "haddockPhase" }
Running phase: installPhase
@nix { "action": "setPhase", "phase": "installPhase" }
Installing library in /nix/store/qv4k9v1vq4bab014xr8rk4psfypwrd6q-cabal2nix-unstable-2025-06-14/lib/ghc-9.8.4/lib/aarch64-osx-ghc-9.8.4/cabal2nix-2.20.1-36qNzpa4bCH4cw4GaqqfIJ
Installing executable cabal2nix in /nix/store/qv4k9v1vq4bab014xr8rk4psfypwrd6q-cabal2nix-unstable-2025-06-14/bin
Warning: The directory
/nix/store/qv4k9v1vq4bab014xr8rk4psfypwrd6q-cabal2nix-unstable-2025-06-14/bin
is not in the system search path.
Installing executable hackage2nix in /nix/store/qv4k9v1vq4bab014xr8rk4psfypwrd6q-cabal2nix-unstable-2025-06-14/bin
Warning: The directory
/nix/store/qv4k9v1vq4bab014xr8rk4psfypwrd6q-cabal2nix-unstable-2025-06-14/bin
is not in the system search path.
Registering library for cabal2nix-2.20.1..
Running phase: fixupPhase
@nix { "action": "setPhase", "phase": "fixupPhase" }
checking for references to /nix/var/nix/builds/nix-build-cabal2nix-unstable-2025-06-14.drv-0/ in /nix/store/qv4k9v1vq4bab014xr8rk4psfypwrd6q-cabal2nix-unstable-2025-06-14...
patching script interpreter paths in /nix/store/qv4k9v1vq4bab014xr8rk4psfypwrd6q-cabal2nix-unstable-2025-06-14
stripping (with command strip and flags -S) in  /nix/store/qv4k9v1vq4bab014xr8rk4psfypwrd6q-cabal2nix-unstable-2025-06-14/lib /nix/store/qv4k9v1vq4bab014xr8rk4psfypwrd6q-cabal2nix-unstable-2025-06-14/bin
libnixxml
============================================================================
# TOTAL: 5
# PASS:  0
# SKIP:  0
# XFAIL: 0
# FAIL:  5
# XPASS: 0
# ERROR: 0
============================================================================
See tests/generic/test-suite.log for debugging.
============================================================================
make[4]: *** [Makefile:535: test-suite.log] Error 1
make[4]: Leaving directory '/nix/var/nix/builds/nix-build-libnixxml-unstable-2020-06-25.drv-1/source/tests/generic'
make[3]: *** [Makefile:670: check-TESTS] Error 2
make[3]: Leaving directory '/nix/var/nix/builds/nix-build-libnixxml-unstable-2020-06-25.drv-1/source/tests/generic'
make[2]: *** [Makefile:770: check-am] Error 2
make[2]: Leaving directory '/nix/var/nix/builds/nix-build-libnixxml-unstable-2020-06-25.drv-1/source/tests/generic'
make[1]: *** [Makefile:363: check-recursive] Error 1
make[1]: Leaving directory '/nix/var/nix/builds/nix-build-libnixxml-unstable-2020-06-25.drv-1/source/tests'
make: *** [Makefile:397: check-recursive] Error 1
node2nix
Adding metadata fields to: node_modules/verror/package.json
Adding metadata fields to: node_modules/verror/node_modules/core-util-is/package.json
Adding metadata fields to: node_modules/walk/package.json
Adding metadata fields to: node_modules/wide-align/package.json
Adding metadata fields to: node_modules/wrappy/package.json
Adding metadata fields to: node_modules/yallist/package.json
npm warn config production Use `--omit=dev` instead.
\|/-rebuilt dependencies successfully
-npm warn config production Use `--omit=dev` instead.
\|/
up to date, audited 152 packages in 1s
/
found 0 vulnerabilities
/linking bin 'node2nix'
/nix/store/bc79kl0ipag67hgyp27qapqxilnvh4v4-stdenv-darwin/setup: line 1851: 57343 Done                       ls $out/bin/*
     57344 Segmentation fault: 11     | while read i; do
    file="$(readlink -f "$i")"; chmod u+rwx "$file"; if isScript "$file"; then
        sed -i 's/\r$//' "$file";
    fi;
done
nodePackages_latest.node2nix
Adding metadata fields to: node_modules/walk/package.json
Adding metadata fields to: node_modules/wide-align/package.json
Adding metadata fields to: node_modules/wrappy/package.json
Adding metadata fields to: node_modules/yallist/package.json
npm warn Unknown cli config "--nodedir". This will stop working in the next major version of npm.
npm warn config production Use `--omit=dev` instead.
\|/-rebuilt dependencies successfully
-npm warn Unknown cli config "--nodedir". This will stop working in the next major version of npm.
npm warn config production Use `--omit=dev` instead.
\|/-
up to date, audited 152 packages in 1s
-
found 0 vulnerabilities
-linking bin 'node2nix'
/nix/store/bc79kl0ipag67hgyp27qapqxilnvh4v4-stdenv-darwin/setup: line 1851: 57386 Done                       ls $out/bin/*
     57387 Segmentation fault: 11     | while read i; do
    file="$(readlink -f "$i")"; chmod u+rwx "$file"; if isScript "$file"; then
        sed -i 's/\r$//' "$file";
    fi;
done

@isabelroses
Copy link
Member

isabelroses commented Sep 7, 2025

is there a perticualr reason to target staging? the rebuild count doesn't seem that high. and i can't find any history of nixVersions.stable changes targeting staging. (also can't find the readme in descrption)

ignore me found it

@emilazy
Copy link
Member

emilazy commented Sep 7, 2025

Per the readme, we're targeting staging.

FWIW this is just #437208, so it can also go to staging-next when it’s live (but the branch is very close to merge so the timing might be dicey right now), and hopefully can go to whatever we call that branch when it exists.

@xokdvium
Copy link
Contributor

xokdvium commented Sep 7, 2025

There might be some things to iron out in patch releases. @Mic92, what are the plans for Darwin build-dir length changes? That should be ported over to 2.31 if it's going to become the new stable. There are also other relevant changes that we should pick from @emilazy's stack for Lix to mitigate the socket path length limitations.

@philiptaron
Copy link
Contributor Author

philiptaron commented Sep 7, 2025

is there a perticualr reason to target staging? the rebuild count doesn't seem that high. and i can't find any history of nixVersions.stable changes targeting staging. (also can't find the readme in descrption)

I should have linked it.

## Major Version Bumps
If you're updating `nixVersions.stable`, follow all the steps mentioned above, but use the **staging** branch for your pull request (or **staging-next** after coordinating with the people in matrix `#staging:nixos.org`)
This is necessary because, at the end of the staging-next cycle, the NixOS tests are built through the [staging-next-small](https://hydra.nixos.org/jobset/nixos/staging-next-small) jobset.
Especially NixOS installer tests are important to look at here.

Evidently it has to do with rebuilds of the NixOS test driver.

EDIT: @emilazy sniped me

@philiptaron
Copy link
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 440681 --checkout commit
Commit: 62f82d6a8f43914978b6dd310d6f060183ab24b7


aarch64-darwin

⏩ 1 package marked as broken and skipped:
  • tests.pkg-config.defaultPkgConfigPackages.tests-combined
❌ 7 packages failed to build:
  • darwin.linux-builder
  • darwin.linux-builder-x86_64
  • haskellPackages.cabal2nix-unstable
  • nixStatic
  • nixStatic.dev
  • nixStatic.doc
  • nixStatic.man
✅ 112 packages built:
  • appvm
  • bower2nix
  • bundix
  • cabal2nix
  • cached-nix-shell
  • colmena
  • comma
  • common-updater-scripts
  • crate2nix
  • crush
  • dub-to-nix
  • dydisnix
  • gcalcli
  • gcalcli.dist
  • gclient2nix
  • haskellPackages.cli-nix
  • haskellPackages.cli-nix.doc
  • haskellPackages.niv
  • haskellPackages.niv.bin
  • haskellPackages.niv.data
  • haskellPackages.niv.doc
  • haskellPackages.nix-paths
  • haskellPackages.nix-paths.doc
  • haskellPackages.nix-thunk
  • haskellPackages.nix-thunk.doc
  • haskellPackages.nvfetcher
  • haskellPackages.nvfetcher.doc
  • haskellPackages.update-nix-fetchgit
  • haskellPackages.update-nix-fetchgit.doc
  • home-manager
  • kcl
  • libnixxml
  • lua51Packages.luarocks-nix
  • luarocks-nix (luaPackages.luarocks-nix)
  • lua53Packages.luarocks-nix
  • lua54Packages.luarocks-nix
  • luajitPackages.luarocks-nix
  • luarocks-packages-updater
  • luarocks-packages-updater.dist
  • lux-cli
  • mdwatch
  • nil
  • nim_lk
  • niv (niv.bin, niv.data)
  • nix-bundle
  • nix-direnv
  • nix-forecast
  • nix-index
  • nix-init
  • nix-pin
  • nix-prefetch
  • nix-prefetch-docker
  • nix-prefetch-github (python313Packages.nix-prefetch-github)
  • nix-prefetch-github.dist (python313Packages.nix-prefetch-github.dist)
  • nix-prefetch-github.man (python313Packages.nix-prefetch-github.man)
  • nix-required-mounts
  • nix-required-mounts.dist
  • nix-template
  • nix-update
  • nix-update.dist
  • nix-visualize
  • nix-visualize.dist
  • nix-web
  • nixci
  • nixos-anywhere
  • nixos-generators
  • nixos-option
  • nixos-rebuild
  • nixos-rebuild-ng
  • nixos-rebuild-ng.dist
  • nixos-shell
  • nixpkgs-hammering
  • nixpkgs-manual
  • nixpkgs-review
  • nixpkgs-review.dist
  • nixpkgs-reviewFull
  • nixpkgs-reviewFull.dist
  • nixtract
  • node2nix (nodePackages.node2nix)
  • nodePackages_latest.node2nix
  • nps
  • nuget-to-json
  • nurl
  • nvfetcher
  • python312Packages.nix-kernel
  • python312Packages.nix-kernel.dist
  • python312Packages.nix-prefetch-github
  • python312Packages.nix-prefetch-github.dist
  • python312Packages.nix-prefetch-github.man
  • python313Packages.nix-kernel
  • python313Packages.nix-kernel.dist
  • python313Packages.nixpkgs-updaters-library
  • python313Packages.nixpkgs-updaters-library.dist
  • ragenix
  • sbomnix
  • sbomnix.dist
  • sus-compiler
  • swiftpm2nix (swiftPackages.swiftpm2nix)
  • terranix
  • tests.pkg-config.defaultPkgConfigPackages.nix-cmd
  • tests.pkg-config.defaultPkgConfigPackages.nix-expr
  • tests.pkg-config.defaultPkgConfigPackages.nix-main
  • tests.pkg-config.defaultPkgConfigPackages.nix-store
  • update-nix-fetchgit
  • update-python-libraries
  • vimPluginsUpdater
  • vulnix
  • vulnix.dist
  • vulnix.doc
  • vulnix.man
  • wp4nix
  • zon2nix

Error logs: `aarch64-darwin`
haskellPackages.cabal2nix-unstable
1 of 1 test suites (1 of 1 test cases) passed.
Running phase: haddockPhase
@nix { "action": "setPhase", "phase": "haddockPhase" }
Running phase: installPhase
@nix { "action": "setPhase", "phase": "installPhase" }
Installing library in /nix/store/qv4k9v1vq4bab014xr8rk4psfypwrd6q-cabal2nix-unstable-2025-06-14/lib/ghc-9.8.4/lib/aarch64-osx-ghc-9.8.4/cabal2nix-2.20.1-36qNzpa4bCH4cw4GaqqfIJ
Installing executable cabal2nix in /nix/store/qv4k9v1vq4bab014xr8rk4psfypwrd6q-cabal2nix-unstable-2025-06-14/bin
Warning: The directory
/nix/store/qv4k9v1vq4bab014xr8rk4psfypwrd6q-cabal2nix-unstable-2025-06-14/bin
is not in the system search path.
Installing executable hackage2nix in /nix/store/qv4k9v1vq4bab014xr8rk4psfypwrd6q-cabal2nix-unstable-2025-06-14/bin
Warning: The directory
/nix/store/qv4k9v1vq4bab014xr8rk4psfypwrd6q-cabal2nix-unstable-2025-06-14/bin
is not in the system search path.
Registering library for cabal2nix-2.20.1..
Running phase: fixupPhase
@nix { "action": "setPhase", "phase": "fixupPhase" }
checking for references to /nix/var/nix/builds/nix-build-cabal2nix-unstable-2025-06-14.drv-78604-3231760912/ in /nix/store/qv4k9v1vq4bab014xr8rk4psfypwrd6q-cabal2nix-unstable-2025-06-14...
patching script interpreter paths in /nix/store/qv4k9v1vq4bab014xr8rk4psfypwrd6q-cabal2nix-unstable-2025-06-14
stripping (with command strip and flags -S) in  /nix/store/qv4k9v1vq4bab014xr8rk4psfypwrd6q-cabal2nix-unstable-2025-06-14/lib /nix/store/qv4k9v1vq4bab014xr8rk4psfypwrd6q-cabal2nix-unstable-2025-06-14/bin

@philiptaron
Copy link
Contributor Author

philiptaron commented Sep 8, 2025

I upgraded my macOS system to Nix 2.31.1 to produce the above build results. Nothing looks out of place. nixStatic should be marked broken on macOS.

haskellPackages.cabal2nix-unstable fails due to this message:

error: output '/nix/store/qv4k9v1vq4bab014xr8rk4psfypwrd6q-cabal2nix-unstable-2025-06-14' is not allowed to refer to the following paths:
         /nix/store/mv04730222h0l6x9lwjmz29ai3j9lmc8-ghc-9.8.4

I don't believe this has to do with Nix 2.31 ...

@philiptaron
Copy link
Contributor Author

@Mic92 I think this is good to merge unless you've got extra testing you'd like to do.

@nixpkgs-ci nixpkgs-ci bot added the 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. label Sep 22, 2025
@Mic92
Copy link
Member

Mic92 commented Sep 22, 2025

% nix-build --eval-system aarch64-darwin -A nixVersions.stable.tests
Finished at 19:35:16 after 0s
/nix/store/sy8vn765njh5rkn4z3pf3k3hndrzahsl-test-nix-fallback-paths-version-equals-nix-stable
/nix/store/9zh2wrpyq2cipry8wqqw74lraam76g0k-nixpkgs-lib-tests-nix-2.31.2
/nix/store/h94y4h0nwh60ylx5psypa43wlaghgjbk-check-pkg-config-nix
/nix/store/5iwsfrlbyfirmmfn7l1wir61lq4h00m5-nix-src-version

@philiptaron
Copy link
Contributor Author

On staging-next, but not on master, nixVersions.stable.tests.nixStatic doesn't build due to this error:

/nix/store/yh6s1ihxlxcdb4ihxm7zvk9356jsl8nw-x86_64-unknown-linux-musl-binutils-2.44/bin/x86_64-unknown-linux-musl-ld: /nix/store/2jz1w0ffkf4ggs0ihyb0cpfgm3nka0p4-x86_64-unknown-linux-musl-gcc-14.3.0/lib/gcc/x86_64-unknown-linux-mt
/nix/store/yh6s1ihxlxcdb4ihxm7zvk9356jsl8nw-x86_64-unknown-linux-musl-binutils-2.44/bin/x86_64-unknown-linux-musl-ld: failed to set dynamic section sizes: bad value

@Mic92
Copy link
Member

Mic92 commented Sep 22, 2025

% nix-build --eval-system x86_64-darwin -A nixVersions.stable.tests
Finished at 20:40:36 after 1s
/nix/store/gvwx2l70n516kjmm99kibp71gpp6rj9c-test-nix-fallback-paths-version-equals-nix-stable
/nix/store/dl4cgi12za00m99d41wljcy15jxdxr0z-nixpkgs-lib-tests-nix-2.31.2
/nix/store/9333q23q2d9q8yhwz4ayywygkn4b4zgw-check-pkg-config-nix
/nix/store/13fgm2hfi21gj0yb8fgjk9wy4bj4mrqw-nix-src-version

@Mic92
Copy link
Member

Mic92 commented Sep 22, 2025

On staging-next, but not on master, nixVersions.stable.tests.nixStatic doesn't build due to this error:

/nix/store/yh6s1ihxlxcdb4ihxm7zvk9356jsl8nw-x86_64-unknown-linux-musl-binutils-2.44/bin/x86_64-unknown-linux-musl-ld: /nix/store/2jz1w0ffkf4ggs0ihyb0cpfgm3nka0p4-x86_64-unknown-linux-musl-gcc-14.3.0/lib/gcc/x86_64-unknown-linux-mt
/nix/store/yh6s1ihxlxcdb4ihxm7zvk9356jsl8nw-x86_64-unknown-linux-musl-binutils-2.44/bin/x86_64-unknown-linux-musl-ld: failed to set dynamic section sizes: bad value

This is the failure I am getting from libnghttp3 so it's not even nix itself that is broken.

@Mic92 Mic92 force-pushed the nixVersions.stable-upgrade-to-2.31.1 branch from 34135e6 to 9e95ace Compare September 22, 2025 19:22
@Mic92
Copy link
Member

Mic92 commented Sep 22, 2025

removed nixStatic from the tests, I might also drop nixStatic from nixpkgs because the pkgsStatic maintainance is not good enough and it always seems I have to fix all kinds of dependencies for a new nix release each time.

@misuzu

This comment was marked as resolved.

@Mic92
Copy link
Member

Mic92 commented Sep 22, 2025

% nix-build --eval-system aarch64-linux -A nixVersions.stable.tests --keep-going
Finished at 21:33:53 after 21s
/nix/store/ndmcrr5h3m91rkhb1c3mrg5k5hxrqgnf-vm-test-run-nix-misc
/nix/store/yg5gkhnfrskc5cs37nkgnr0waq9s425p-test-nix-fallback-paths-version-equals-nix-stable
/nix/store/w5ciz0qrn28phr6r1ws28w2in02y9lbn-nixpkgs-lib-tests-nix-2.31.2
/nix/store/bdn6qsbrmy32gz07arydicma2rq2lsvb-check-pkg-config-nix
/nix/store/l7sysgkn2j0h18fly3v5fg84cj1jzq7d-vm-test-run-installer-simpleUefiSystemdBoot
/nix/store/fvr0r16yyaaszs60c4kc66gr4wj1p7n4-nix-src-version
/nix/store/22zzzhkh9r98r5bvvfk5rzv0c5malkcs-vm-test-run-nix-upgrade-2.31.2-2.31.2
nom-build --eval-system aarch64-linux -A nixVersions.stable.tests --keep-goin  8.72s user 2.27s system 51% cpu 21.510 total

Binutils deprecated the gold linker, so do we.
We already did this a while ago in the nix repository since we switched to mold for development.
@Mic92 Mic92 force-pushed the nixVersions.stable-upgrade-to-2.31.1 branch from 74983bc to c27c325 Compare September 22, 2025 20:09
Copy link
Contributor

@misuzu misuzu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The cross build to riscv64 is fixed, thanks!

% nix-build . -A pkgsCross.riscv64.nixVersions.stable
/nix/store/qazd6knqxv2a0d5gz76m56y5gs3yzcq4-nix-riscv64-unknown-linux-gnu-2.31.2

@nixpkgs-ci nixpkgs-ci bot added 12.approvals: 3+ This PR was reviewed and approved by three or more persons. and removed 12.approvals: 2 This PR was reviewed and approved by two persons. labels Sep 22, 2025
@Mic92 Mic92 merged commit dadbadb into NixOS:staging-next Sep 22, 2025
28 of 32 checks passed
@philiptaron philiptaron deleted the nixVersions.stable-upgrade-to-2.31.1 branch September 22, 2025 20:54
@philiptaron
Copy link
Contributor Author

Hell yeah. This is going to be a staging-next for the ages! And if the 2.32 release (with the awesome memory wins) happens soon enough, we might be able to sneak that into 25.11 as the stable Nix.

@Mic92
Copy link
Member

Mic92 commented Sep 22, 2025

Hell yeah. This is going to be a staging-next for the ages! And if the 2.32 release (with the awesome memory wins) happens soon enough, we might be able to sneak that into 25.11 as the stable Nix.

@xokdvium is working on a 2.31 backport actually.

@Izorkin
Copy link
Contributor

Izorkin commented Dec 24, 2025

After this update, the nix build without AWS support produces an error:

       error: function 'anonymous lambda' called with unexpected argument 'withAWS'
       at /home/user/works/src-nix/nixpkgs/pkgs/tools/package-management/nix/modular/packaging/everything.nix:1:1:
            1| {
             | ^
            2|   lib,
Command 'nix-build '<nixpkgs/nixos>' --attr config.system.build.toplevel --dry-run' returned non-zero exit status 1.

Config:

  nixpkgs.overlays = [
    nix = super.nix.override { withAWS = false; };
  ];

@xokdvium
Copy link
Contributor

The overriding interface has changed, since componentized builds:

nixVersions.nix_2_31.overrideScope (final: prev: { nix-store = prev.nix-store.override { withAWS = false; }; })

@Izorkin
Copy link
Contributor

Izorkin commented Dec 24, 2025

@xokdvium not working this variant:

  nixpkgs.overlays = [
    nix = pkgs.nixVersions.nix_2_31.overrideScope (final: prev: { nix-store = prev.nix-store.override { withAWS = false; }; })
  ];

Or am I doing something wrong.

@xokdvium
Copy link
Contributor

Presumably something like this should work. There's 2 layers of overrides here, one is the overlay and the other is the overrideScope.

nixpkgs.overlays = [
  (_: prevPkgs: { nix = prevPkgs.nixVersions.stable.overrideScope (final: prev: { nix-store = prev.nix-store.override { withAWS = false; }; } }))
];

@Izorkin
Copy link
Contributor

Izorkin commented Dec 25, 2025

Error:

       error: syntax error, unexpected '(', expecting INHERIT or '}'
       at /etc/nixos/generic/overlays/default.nix:52:7:
           51|       libvirt = super.libvirt.override { enableXen = false; };
           52|       (_: prevPkgs: { nix = prevPkgs.nixVersions.stable.overrideScope (final: prev: { nix-store = prev.nix-store.override { withAWS = false; }; })})
             |       ^
           53|       wireshark-cli = super.wireshark-cli.override { libpcap = super.libpcap.override { withBluez = false; }; };
Command 'nix-build '<nixpkgs/nixos>' --attr config.system.build.toplevel --dry-run' returned non-zero exit status 1.

@xokdvium
Copy link
Contributor

Sorry, I was typing on the phone. Just fix the parenthesis, but the gist is that. You can just look up how to specify overlays in the relevant nixpkgs documentation.

@Izorkin
Copy link
Contributor

Izorkin commented Dec 25, 2025

The first error occurs again: function 'anonymous lambda' called with unexpected argument 'withAWS'.

Config:

  nixpkgs.overlays = [
    (_: prevPkgs: {
      nix = prevPkgs.nixVersions.stable.overrideScope (final: prev: { nix-store = prev.nix-store.override { withAWS = false; }; });
    })
  ];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 101-500 This PR causes between 101 and 500 packages to rebuild on Darwin. 10.rebuild-linux: 101-500 This PR causes between 101 and 500 packages to rebuild on Linux. 10.rebuild-nixos-tests This PR causes rebuilds for all NixOS tests and should normally target the staging branches. 12.approvals: 3+ This PR was reviewed and approved by three or more persons. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages.

Projects

None yet

Development

Successfully merging this pull request may close these issues.